import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useListStore = defineStore(
  'cp-list',
  () => {
    //推荐服务
    const tjlist = ref([])
    //首页信息
    const sysinfo = ref()
    const settjlist = (u: any) => {
      tjlist.value = u
    }
    const setsysinfo = (u: any) => {
      sysinfo.value = u
    }

    return {
      tjlist,
      settjlist,
      sysinfo,
      setsysinfo
    }
  },
  {
    persist: true
  }
)
